import http from '@/components/common/tui-request'


//获取在建项目信息
export const getProjectViewList = (page,limit) => {
	return http.request({
		url: `/project-overview/getProjectViewList/${page}/${limit}`,
		method: 'GET',
	});
};

//获取项目工程信息
export const getProjectOverviewById = (id) => {
	return http.request({
		url: `/project-overview/getProjectOverviewById?id=${id}`,
		method: 'GET',
	});
};

//获取当前用户在指定项目的角色
export const getUserRoleInProject = (projectId) => {
	return http.request({
		url: `/project-overview/getUserRoleInProject?projectId=${projectId}`,
		method: 'GET',
	});
};

//获取app项目模块
export const getModuleInProject = (projectId) => {
	return http.request({
		url: `/project-overview/getModuleInProject?projectId=${projectId}`,
		method: 'GET',
	});
};
